package com.labbit.platform.commons.exception;


import com.labbit.platform.commons.exception.message.ExceptionMessage;

/**
 * @Description 用户禁止访问 http code 403
 * @Date 2019-07-28 19:45
 * @Author CHEN YU
 **/
public class ForbiddenException extends RuntimeException {

    private ExceptionMessage exceptionMessage;

    public ForbiddenException(ExceptionMessage message) {
        super(message.getMessage());
        this.exceptionMessage = message;
    }

    public ForbiddenException(ExceptionMessage message, Throwable cause) {
        super(message.getMessage(), cause);
        this.exceptionMessage = message;
    }

    public ExceptionMessage getExceptionMessage() {
        return exceptionMessage;
    }
}
